# -*- encoding=utf8 -*-

__author__ = "code哥"
from start import apps_info, stop, stop_app_phone, stop_scheduler, android_devices


def main():
    for app in apps_info:
        for devices in android_devices():
            stop(app.get('name', ''), app.get('script', ''), devices)
    stop_app_phone()
    stop_scheduler()
    # command1 = "ps -ef | grep python | grep -v grep | awk '{print $1,$2,$3}' | xargs kill -TERM"
    # stop('stop', command1)


if __name__ == '__main__':
    main()
